package days9._test_base_duck;

import days9.duck.BaseDuck;
import days9.duck.KeDaDuck;

/**
 * @Author fengzihao
 * @Date 2024-04-23 14:01
 */
public class TestBaseDuck {
    public static void main(String[] args) {
        BaseDuck baseDuck = new BaseDuck();
        KeDaDuck keDaDuck = new KeDaDuck();
        TestProtected testProtected = new TestProtected();
        testProtected.testProtected();
        // testProtected.getType();
    }
}

class TestProtected extends BaseDuck {
    public void testProtected() {
        System.out.println(this.name);
    }
}
